package com.hrhx.duhongming.bean;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class EchartsOnClick{
	
	private String id;
	private String seriesIndex;
	private String seriesName;
	private String name;
	private Double value;
	
	private String x;
	private String y;
	
	public EchartsOnClick() {
		super();
	}
	
	public EchartsOnClick(String id, String seriesName, String name, Double value) {
		super();
		this.id = id;
		this.seriesName = seriesName;
		this.name = name;
		this.value = value;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	
	public String getSeriesIndex() {
		return seriesIndex;
	}

	public void setSeriesIndex(String seriesIndex) {
		this.seriesIndex = seriesIndex;
	}

	public String getSeriesName() {
		try {
			if(seriesName!=null){
				return URLDecoder.decode(seriesName, "UTF-8");
			}else{
				return "";
			}
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return "";
		}
	}
	public void setSeriesName(String seriesName) {
		this.seriesName = seriesName;
	}
	public String getName() {
		try {
			if(seriesName!=null){
				return URLDecoder.decode(name, "UTF-8");
			}else{
				return "";
			}
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return "";
		}
	}
	public void setName(String name) {
		this.name = name;
	}
	public Double getValue() {
		return value;
	}
	public void setValue(Double value) {
		this.value = value;
	}

	public String getX() {
		return x;
	}

	public void setX(String x) {
		this.x = x;
	}

	public String getY() {
		return y;
	}

	public void setY(String y) {
		this.y = y;
	}

}
